<!DOCTYPE html>
<html lang="en">
<head>
[#include "/customer/include/static.htm"]
    <link href="${path}/resources/css/member.css" rel="stylesheet" type="text/css"/>
    <link href="${path}/resources/css/member/main.css" rel="stylesheet" type="text/css"/>
    <link href="${path}/resources/css/member/balance.css" rel="stylesheet" type="text/css"/>
    <link href="${path}/resources/plug/layui/css/layui.css" rel="stylesheet" type="text/css"/>
    <script src="${path}/resources/plug/layui/layui.js" type="text/javascript"></script>

[#--<link href="${path}/resources/css/public.css" rel="stylesheet"  type="text/css" />--]
    <script type="text/javascript" src="${path}/resources/js/jquery.form.js"></script>
    <style type="text/css">

    </style>
</head>
<body>
<!--头部-->
[#include "/customer/include/header.ftl"]


[#include "/customer/include/member_menu.ftl"]
<form id="form1"></form>
<div id="user-glb-box" class="safe-bg">
    <div id="user-glb-main-info">
        <!--左栏-->
    [#--   [#include "/customer/include/member_left_menu.ftl"]--]
        <!--左栏 end-->
        <!--右栏-->
        <div id="user-glb-right">
            <div class="member-info">
                <div class="sc-time">
                    <div>上次登录时间：
                    ${(p2p_date_format(loginUser.last_time ,"yyyy-MM-dd HH:mm:ss"))!''}
                    </div>
                </div>
                <div class="member-xinxi fl">
                    <dl class="user-info">
                        <dt class="user-img">
                            <img style="width: 100px; height: 100px"
                                 src="${path}/resources/images/member.png">
                        </dt>
                        <dd>
                            <p class="wel-text">欢迎您，</p>

                            <h2 class="wel-name">
                                <span class="fc14">${loginUser.user_name }</span><span>
                            </h2>
                        <dd>

                        [#if realName??]
                            <a href="${path}/member/ucenter/safe">
                                [#if (realName.status)==1]
                                    <span class="iconfont01">&#xe753;</span>
                                [#else]
                                    <span class="iconfont02">&#xe753;</span>
                                [/#if]
                            </a>
                        [#else]
                            <a href="${path}/member/ucenter/safe">


                                <span class="iconfont02">&#xe753;</span>

                            </a>
                        [/#if]

                            <a href="${path}/member/ucenter/safe">
                          [#--  [#if mobile.passed==1]--]
                                <span class="iconfont01">&#xe72a;</span>
                         [#--   [#else]
                                <span class="iconfont02">&#xe72a;</span>
                            [/#if]--]

                            </a>

                        </dd>
                    </dl>
                </div>
                <div class="money fl" style="width: 420px; margin-top: 45px;">
                    <div style="width: 100%; height: 26px; line-height: 26px">
                        <div class="mrsy fl" style="width: 210px;">
                            <b class=" num_name">活期宝总额：</b><b class="num">${currency((yuebao.total)!'0') }</b>
                        </div>
                        <div class="ydaishou fl">
                            <b class="num_name">昨日收益：</b><b class="num">${currency((yuEbao.yesterday_income)!'0')}</b>
                        </div>


                    </div>
                    <div style="width: 100%; height: 26px; line-height: 26px">
                        <div class="ydaishou fl" style="width: 210px;">
                            <b class="num_name">收益率：</b><b class="num ">${yield?number*100 } %</b>
                        </div>
                        <div class="ydaishou fl mt15" style="width: 210px;">
                            <b class="num_name">累计收益：</b><b class="num">${currency((yuEbao.total_income)!'0')}
                        </div>

                    </div>


                </div>
                <div class="" style="width: 300px;float:right">
                    <p>
                        <button class="layui-btn layui-btn-radius  layui-btn-danger" style="width: 100px"
                                onclick="location.href='${path}/member/current/index'">查看活期宝
                        </button>
                        <button class="layui-btn layui-btn-radius   layui-btn-warm" style="width: 100px"
                                onclick="location.href='${path}/member/account/gocash'">提现
                        </button>
                    </p>
                    <br/>
                    <p>
                        <button class="layui-btn layui-btn-radius  " style="width: 100px"
                                onclick="location.href='${path}/member/account/go_recharge_online'">网银充值
                        </button>
                    </p>
                </div>
            </div>
            <div class="line"></div>
            <div class="zichan">
                <table width="1100" height="131" border="0">
                    <tbody>
                    <tr>
                        <td height="64" width="200px" align="center">可用余额</td>
                        <td rowspan="2" align="center" width="50px"><img
                                src="${path}/resources/images/jia.png"></td>
                        <td align="center" width="200px">冻结资金</td>
                        <td rowspan="2" align="center" width="50px"><img
                                src="${path}/resources/images/jia.png"></td>
                        <td align="center" width="200px">活期宝</td>
                        <td rowspan="2" align="center" width="50px"><img
                                src="${path}/resources/images/jia.png"></td>
                        <td align="center" width="200px">待收金额</td>
                        <td rowspan="2" align="center" width="50px"><img
                                src="${path}/resources/images/deng.png"></td>
                        <td align="center" width="200px">总资产</td>

                    </tr>
                    <tr>

                        <td height="61" align="center" valign="top"><b
                                class="num_gun1"
                                style="font-size: 24px; font-weight: normal; color: #ff7200">${currency((account.balance)!0)}</b>元</td>
                        <td align="center" valign="top">
                            <b class="num_gun2" style="font-size: 24px; font-weight: normal; color: #ff7200">
                            ${currency((account.freezing_amont)!0)}
                            </b>
                            <i>元</i>
                        </td>
                        <td align="center" valign="top">
                            <b class="num_gun2" style="font-size: 24px; font-weight: normal; color: #ff7200">
                            ${currency((yuEbao.total)!'0')}
                            </b><i>元</i>
                        </td>

                        <td align="center" valign="top">
                            <b class="num_gun" style="font-size: 24px; font-weight: normal; color: #0896e8">
                            ${currency((account.collection)!0)}
                            </b>
                            <i>元</i>
                        </td>

                        <td align="center" valign="top">
                            <b class="num_gun" style="font-size: 24px; font-weight: normal; color: #ff7200">
                            ${currency((account.total+account.collection)!0)}
                            </b><i>元</i>
                        </td>

                    </tr>
                    </tbody>
                </table>
            </div>
            <div class="line"></div>
            <ul class="money_list">
                <li class="fl1">
                    <div class="income">
                        <img src="/resources/images/wenhao.png" class="yuan">累计净赚收益
                    </div>
                    <span>￥${income!'0'}<strong>元</strong></span>

                    <div class="tomorrow">
                        <img src="/resources/images/wenhao.png" class="yuan">待收利息
                    </div>
                    <span>￥${interest!'0'}<strong>元</strong></span>

                    <div class="fl1_img">
                        <img src="/resources/images/1.svg">
                    </div>
                </li>
                <li class="center2">
                    <div class="usable">
                        <img src="/resources/images/wenhao.png" class="yuan">累计充值
                    </div>
                    <span>￥${recharge!'0'}<strong>元</strong></span>

                    <div class="freeze">
                        <img src="/resources/images/wenhao.png" class="yuan">累计提现
                    </div>
                    <span>￥${cash!'0'}<strong>元</strong></span>

                    <div class="center2_img">
                        <img src="/resources/images/2.svg">
                    </div>
                </li>
                <li class="fr3">
                    <div class="account">
                        <img src="/resources/images/wenhao.png" class="yuan">待收总额
                    </div>
                    <span>￥${currency(account.collection)}<strong>元</strong></span>

                    <div class="freeze">
                        <img src="/resources/images/wenhao.png" class="yuan">待收笔数
                    </div>
                    <span>${ colnumber!'0'}<strong>笔</strong></span>

                    <div class="fr3_img">
                        <img src="/resources/images/3.svg">
                    </div>
                </li>
            </ul>

            <div class="member-list">
                <div class="i-list-tit"><b>收支明细</b><em><a href="${path}/member/account/log">全部收支明细</a></em></div>
                <div class="i-table">
                    <table class="layui-table">
                        <colgroup>

                            <col width="100">

                            <col width="100">
                            <col width="100">
                            <col width="100">

                            <col width="100">
                            <col width="100">
                            <col width="100">
                        </colgroup>
                        <thead>

                        <tr>
                            <th class="th1">时间</th>
                            <th class="th2">交易类型</th>
                            <th class="th3">资金</th>
                            <th class="th5">可用余额</th>
                            <th class="th5">总金额</th>
                            <th class="th5">冻结金额</th>
                            <th class="th2">备注</th>
                        </tr>
                        </thead>
                        <tbody>
                        [#if logs?? && logs?size > 0]
                            [#list logs as log]
                            <tr>
                                <td class="td1">
                                ${p2p_date_format(log.addtime,"yyyy-MM-dd HH:mm:ss")}
                                </td>
                                <td class="td2">
                                    <div class="i-table-icon i-table-icon1"><b
                                            class="i-table-tips-tit">${p2p_get_dict("account_type", log.type)}</b>
                                        <i class="i-table-tips-icon">
                                            <div class="i-table-tips-box">
                                                <b></b>

                                                <p>${(log.remark)!''}</p>
                                            </div>
                                        </i>
                                    </div>
                                </td>
                                <td class="td3">
                                    [#if log.flow=='in']
                                        <b class="b-col1">+ ${log.money }</b>
                                    [#elseif log.flow=='out' ]
                                        <b class="b-col2">- ${log.money }</b>
                                    [#elseif log.flow=='thaw' ]
                                        <b>解冻 ￥${log.money }</b>
                                    [#elseif log.flow=='out_yuebao' ]
                                        <b>活期宝撤购 ￥${log.money }</b>
                                    [#elseif log.flow=='into_yuebao' ]
                                        <b>活期宝购买 ￥${log.money }</b>
                                    [#elseif log.flow=='col']
                                        <b style="color:deepskyblue">￥${log.money }</b>
                                    [#else]
                                        <b >冻 ￥${log.money }</b>
                                    [/#if]
                                </td>
                                <td class="td5">￥${(log.balance)!'' }</td>
                                <td class="td5">￥${(log.total)!'' }</td>
                                <td class="td5">￥${(log.freezing_amont)!'' }</td>
                                <td class="td2">${(log.remark)!'' }</td>
                            </tr>
                            [/#list]
                        [#else]
                        <tr>
                            <td colspan="7" style="background: #fff">
                                <div class="nodataimg"></div>
                            </td>
                        </tr>
                        [/#if]
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>

[#include "/customer/include/footer.ftl"]

</body>
</html>